package com.example.copa_america;


import java.io.BufferedReader;
import java.io.InputStreamReader;

import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;

import android.os.Bundle;
import android.os.Handler;
import android.app.Activity;
import android.content.Intent;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.TextView;
import android.graphics.Color;


@SuppressWarnings("unused")
public class MainActivity extends Activity {
	ImageButton btnDesarrolladores;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
        Button btnNoticias = (Button)this.findViewById(R.id.buttonNoticias);
        Button btnFixtures = (Button)this.findViewById(R.id.buttonFixtures);
        Button btnResultados = (Button)this.findViewById(R.id.buttonResultados);
        Button btnEstadios = (Button)this.findViewById(R.id.buttonEstadios);
        btnDesarrolladores = (ImageButton)findViewById(R.id.buttondesarrolladores);
        
        
        
    	btnNoticias.setOnClickListener(new OnClickListener()
    	{
    		 		
    	    public void onClick(View v)
    	    {
    	    	Intent intent = new Intent(MainActivity.this, Noticias.class);
				startActivity(intent);
    	   
    	    }
    	});
    	
    	btnFixtures.setOnClickListener(new OnClickListener()
    	{
    		 		
    	    public void onClick(View v)
    	    {
    	    	Intent intent = new Intent(MainActivity.this, Fixtures.class);
				startActivity(intent);
    	    }
    	});
    	
    	btnResultados.setOnClickListener(new OnClickListener()
    	{
    		 		
    	    public void onClick(View v)
    	    {
    	    	Intent intent = new Intent(MainActivity.this, Resultados.class);
				startActivity(intent);
    	    }
    	});
    	
    	btnEstadios.setOnClickListener(new OnClickListener()
    	{
    		 		
    	    public void onClick(View v)
    	    {
    	    	Intent intent = new Intent(MainActivity.this, Estadios.class);
				startActivity(intent);
    	    }
    	});
    	
    	btnDesarrolladores.setOnClickListener(new OnClickListener()
    	{
    		 		
    	    public void onClick(View v)
    	    {
    	    	Intent intent = new Intent(MainActivity.this, desarrolladores.class);
				startActivity(intent);
    	    }
    	});
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
}
